package com.sdtv.mediunfusion.mvp.model;

import com.sdtv.basemodule.mvp.IModel;
import com.sdtv.basemodule.mvp.IView;
import com.sdtv.mediunfusion.mvp.contract.MainContract;
import com.sdtv.mediunfusion.utils.Constants;

import java.util.HashMap;

import io.reactivex.Observable;

/**
 * @ProjectName: MediunFusion
 * @Package: com.sdtv.mediunfusion.mvp.model
 * @ClassName: MeltCallModel
 * @Description: java类作用描述
 * @Author: 小郭同学
 * @CreateDate: 2019-07-31 15:16
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class MeltCallModel extends IModel {

    public MeltCallModel(IView mIView) {
        super(mIView);
    }

    /**
     * 获取列表数据
     * 打卡记录
     */
    public Observable getMeltCallList(int page) {
        HashMap<String, Integer> map = new HashMap<>();
        map.put("pageNumber", page);
        map.put("pageSize", Constants.PAGE_SIZE);
        return addObservable(MainContract.getAppService().getMeltCallList(map));
    }
}
